package com.example.netty.tcp.message;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;

public class ConfigurationQueryRequest extends BaseMessage {
    public ConfigurationQueryRequest() {
        setMsgType(210); // 配置查询请求类型
    }

    @JsonProperty("paramList")
    private List<Parameter> paramList = new ArrayList<>();

    public void addParameter(String signalId) {
        Parameter param = new Parameter();
        param.setId(signalId);
        paramList.add(param);
    }

    public List<Parameter> getParamList() {
        return paramList;
    }

    public static class Parameter {
        @JsonProperty("id")
        private String id;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }
}
